/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 头部样式 */
header {
  background-color: #27694d;
  color: white;
  padding: 10px 0;
}

/* 头部容器样式，用于居中内容和控制宽度 */
header .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 校徽部分样式 */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  vertical-align: middle;
}

/* 右侧部分样式 */
.right-section {
  display: flex;
  align-items: center;
}

/* 顶部链接部分样式 */
.top-links {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

/* 顶部链接样式 */
.top-links a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  text-align: center;
}

/* 搜索框部分样式 */
.search-bar {
  display: flex;
  align-items: center;
}

/* 搜索框输入框样式 */
.search-bar input {
  padding: 8px 12px;
  border: none;
  border-radius: 20px 0 0 20px;
  width: 200px;
}

/* 搜索框按钮样式 */
.search-bar button {
  padding: 8px 12px;
  border: none;
  background-color: #27694d;
  color: white;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
}

/* 导航栏样式 */
.nav {
  background-color: #27694d;
  padding: 10px 0;
}

/* 导航栏容器样式，用于居中内容和控制宽度 */
.nav .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 导航栏表格样式 */
.nav table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

/* 导航栏表格单元格样式 */
.nav table td {
  padding: 10px 36px; /* 增加每列之间的间距 */
}

.nav table td a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  text-align: center;
}

/* 下拉菜单样式 */
.dropdown {
  position: relative;
  display: inline-block; /* 确保下拉菜单可以正确对齐 */
}

/* 下拉菜单内容样式 */
.dropdown-content {
  display: none;
  position: absolute;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  top: 51px;
  right: 1px;
}

/* 下拉菜单项样式 */
.dropdown-content a {
  color: yellow;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 18px;
  background-color: #27694d;
  text-align: center;
}

/* 鼠标悬停下拉菜单项时文字变黄 */
.dropdown-content a:hover {
  color: yellow;
}

/* 鼠标悬停下拉菜单时显示内容 */
.dropdown:hover .dropdown-content {
  display: block;
}

/* 图片滚动区域样式 */
.image-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 500px; /* 根据需要调整图片高度 */
}

/* 图片样式 */
.image-slider img {
  width: 100%;
  height: auto;
  position: absolute;
  opacity: 0;
  transition: opacity 5s ease-in-out;
}

/* 初始显示第一张图片 */
.image-slider img:first-child {
  opacity: 1;
}

/* 图片切换动画 */
@keyframes slide {
  0% {
    opacity: 1;
  }
  33.33% {
    opacity: 1;
  }
  33.34% {
    opacity: 0;
  }
  66.66% {
    opacity: 0;
  }
  66.67% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

/* 应用动画 */
.image-slider img:nth-child(1) {
  animation: slide 15s infinite 0s;
}

.image-slider img:nth-child(2) {
  animation: slide 15s infinite 5s;
}

.image-slider img:nth-child(3) {
  animation: slide 15s infinite 10s;
}

/* 校园新闻和通知公告区域样式 */
.news-and-announcements {
  margin: 20px 0;
}

.news-and-announcements .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.news-and-announcements .column {
  width: 48%;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-and-announcements .column h2 {
  margin-bottom: 10px;
  color: #27694d;
}

.news-and-announcements .column p {
  color: #666;
}

.news-and-announcements a {
  color: black;
  text-decoration: none;
}

.news-and-announcements {
  margin-bottom: 70px; /* 根据需要调整距离大小 */
}

/* 媒体师大和师大文苑告 */
.news-and-announcements2 {
  margin: 20px 0;
}

.news-and-announcements2 .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.news-and-announcements2 .column {
  width: 48%;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(230, 227, 227, 0.1);
}

.news-and-announcements2 .column h2 {
  margin-bottom: 10px;
  color: #27694d;
}

.news-and-announcements2 .column p {
  color: #666;
}

.news-and-announcements2 a {
  color: black;
  text-decoration: none;
}

.news-and-announcements2 {
  margin-bottom: 70px; /* 根据需要调整距离大小 */
  font-size: 14px; 
}

.news-and-announcements2 .column.news p,
.news-and-announcements2 .column.announcements2 p {
    font-size: 14px; /* 根据需要调整字体大小 */
}

/* 底部 */
footer {
  background-color: #27694d;
  color: white;
  padding: 20px 0;
  display: flex;
  justify-content: center;
}

.footer-content {
  display: flex;
  width: 80%;
}

.left-section {
  flex: 1;
  padding: 0 20px;
}

.left-section p {
  text-align: center;
  margin: 10px 0;
}

.column announcements2 smaller-text {
  font-size: 0.1em;
  color:red
}

/* 鼠标悬浮超链接字体变黄 */
a:hover {
    color: #27694d;
}
/* 将p标签字体变小 */
p {
  font-size: 0.9em; /* 将字体大小调整为原来的90%，即小一号 */
}